package model.dao;

import java.sql.SQLException;
import java.util.List;

import model.dto.loginDTO;

import com.ibatis.sqlmap.client.SqlMapClient;



public class loginDAO {
	private static SqlMapClient client = DAOparser.getParser();
	
	public static List selectAllUserId(){
		List list=null;
		try{
			list = client.queryForList("login.selectAllUserId");
		}catch(SQLException e){
			e.printStackTrace();
		}
		return list;
	}
	
	public static void insertUserId(loginDTO dto){
		try {
			client.update("login.insertUserId",dto);
		} catch (SQLException e) {
			System.out.println("insertUserId 함수 오류");
			e.printStackTrace();
		}
	}
}
